package com.pope.framework.rescue.modular.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 离抢信息
 * </p>
 *
 * @author superpope
 * @since 2019-01-16
 */
@Data
@ApiModel(description= "离抢信息")
@TableName("t_triage_rescue_info")
public class RescueInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统主键
     */
    @TableId("ID")
    @ApiModelProperty(value = "离抢信息主键，添加必须为空，修改可不为空",dataType="Integer",required=false)
    private Integer id;

    /**
     * 离抢去向
     */
    @TableField("RESCUE_WHERE_ABOUTS")
    @NotBlank(message="离抢去向不能为空")
    @ApiModelProperty(value = "离抢去向编码",dataType="String",required=true)
    private String rescueWhereAbouts;

    /**
     * 离抢时间
     */
    @TableField("RESCUE_TIME")
    @ApiModelProperty(value = "离抢时间(转入时间)",dataType="String",required=true)
    @NotBlank(message="离抢时间不能为空")
    private String rescueTime;

    
    /**
     * 说明
     */
    @TableField("CONTENT")
    @ApiModelProperty(value = "离抢说明",dataType="String",required=false)
    private String content;

   

    /**
     * 分诊ID
     */
    @TableField("TRIAGE_ID")
    @ApiModelProperty(value = "分诊ID",dataType="Integer",required=true)
    @NotNull(message="分诊ID不能为空")
    private Integer triageId;
    /**s
     * 患者ID
     */
    @TableField("PATIENT_ID")
    @ApiModelProperty(value = "患者ID",dataType="Integer",required=true)
    
    private Integer patientId;
    
    @TableField("EMERGENCY_NUMBER")
    @ApiModelProperty(value = "急诊编号",dataType="String",required=false)
    private String emergencyNumber;
    @TableField("VISIT_TIME")
    @ApiModelProperty(value = "就诊时间",dataType="String",required=false)
    private String visitTime;
    @TableField("HOSPITAL_ID")
    @NotNull(message="医院ID不能为空")
    @ApiModelProperty(value = "医院ID",dataType="Integer",required=true)
    private Integer hospitalId;
    /**
     * 分诊科室
     */
    @TableField("DEPART")
    @ApiModelProperty(value = "分诊科室ID",dataType="Integer",required=true)
    @NotNull(message="分诊科室ID不能为空")
    private Integer depart;
    
    @TableField("GRADE")
    @ApiModelProperty(value = "分诊级别ID",dataType="Integer")
    @NotNull(message="分诊级别ID不能为空")
    private Integer grade;
    
    /**
     * 操作员标识
     */
    @TableField(value="SITE_ID",fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "租户字段,可不用填写，填写无效")
    private Integer siteId;
    /**
     * 操作员标识
     */
    @TableField(value="STAFF_ID",fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "操作员标识,可不用填写，填写无效",dataType="Integer")
    private Integer staffId;
    /**
     * 备注
     */
    @TableField("REMARK")
    @ApiModelProperty(value = "备注",dataType="String")
    private String remark;
    
    /**
     * 创建时间
     */
    @TableField(value="CREATETIME",fill=FieldFill.INSERT)
    @ApiModelProperty(value = "记录创建时间,可不用填写，填写无效",dataType="String",required=false)
    private String createtime;

    /**
     * 更新时间
     */
    @TableField(value="UPDATETIME",fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "记录修改时间,可不用填写，填写无效",dataType="String",required=false)
    private String updatetime;
    @TableField(value="CREATE_MAN",fill=FieldFill.INSERT)
    @ApiModelProperty(value = "创建人,可不用填写，填写无效",dataType="String")
    private String  createMan;
    
    

}
